package com.ting.service.impl;

import com.ting.entity.Mnu;
import com.ting.mapper.MnuMapper;
import com.ting.service.IMnuService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author xiaobai
 * @since 2021-12-14
 */
@Service
public class MnuServiceImpl extends ServiceImpl<MnuMapper, Mnu> implements IMnuService {

    @Resource
    MnuMapper mnuMapper;

    @Override
    public List<Mnu> selectByPid(String pid) {
        return mnuMapper.selectByPid( pid );
    }

    @Override
    public List<Mnu> selectAll() {
        return mnuMapper.selectAll();
    }

    @Override
    public List<Mnu> selectAllNotBase() {
        return mnuMapper.selectAllNotBase();
    }
}
